package cn.myframe.entity.sys;

import cn.myframe.entity.bus.BusCompanyEntity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;



/**
 * 消息列表; InnoDB free: 3431424 kB
 *
 * @author ynz
 * @email ynz@myframe.cn
 * @date 2017-09-07 15:18:56
 */
public class SysInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	public static final Integer TYPE_SYS = 0;
	public static final Integer STATUS_NOT_READ = 0;

	//消息主键
	private String id;
	//消息类型
	private Integer infoType;
	//消息内容
	private String infoContent;
	//消息标题
	private String infoTitle;

	private Integer status;
	//创建人id
	private Long createBy;
	//更新人id
	private Long updateBy;
	//创建时间
	private Date createTime;
	//更新时间
	private Date updateTime;
	//创建者
	private SysUserEntity creator;

	private BusCompanyEntity busCompany;
	//运营商ID集合
	private List<Integer> busCompanyIdList;


	//运营商集合
	private List<BusCompanyEntity> busCompanyList;

	private String companyNameString;

	private Integer infoStatus;

	/**
	 * 设置：消息主键
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * 获取：消息主键
	 */
	public String getId() {
		return id;
	}
	/**
	 * 设置：消息类型
	 */
	public void setInfoType(Integer infoType) {
		this.infoType = infoType;
	}
	/**
	 * 获取：消息类型
	 */
	public Integer getInfoType() {
		return infoType;
	}
	/**
	 * 设置：消息内容
	 */
	public void setInfoContent(String infoContent) {
		this.infoContent = infoContent;
	}
	/**
	 * 获取：消息内容
	 */
	public String getInfoContent() {
		return infoContent;
	}
	/**
	 * 设置：消息标题
	 */
	public void setInfoTitle(String infoTitle) {
		this.infoTitle = infoTitle;
	}
	/**
	 * 获取：消息标题
	 */
	public String getInfoTitle() {
		return infoTitle;
	}
	/**
	 * 设置：创建人id
	 */
	public void setCreateBy(Long createBy) {
		this.createBy = createBy;
	}
	/**
	 * 获取：创建人id
	 */
	public Long getCreateBy() {
		return createBy;
	}
	/**
	 * 设置：更新人id
	 */
	public void setUpdateBy(Long updateBy) {
		this.updateBy = updateBy;
	}
	/**
	 * 获取：更新人id
	 */
	public Long getUpdateBy() {
		return updateBy;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	/**
	 * 获取：更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public SysUserEntity getCreator() {
		return creator;
	}
	public void setCreator(SysUserEntity creator) {
		this.creator = creator;
	}
	public BusCompanyEntity getBusCompany() {
		return busCompany;
	}
	public void setBusCompany(BusCompanyEntity busCompany) {
		this.busCompany = busCompany;
	}
	public List<Integer> getBusCompanyIdList() {
		return busCompanyIdList;
	}
	public void setBusCompanyIdList(List<Integer> busCompanyIdList) {
		this.busCompanyIdList = busCompanyIdList;
	}
	public List<BusCompanyEntity> getBusCompanyList() {
		return busCompanyList;
	}
	public void setBusCompanyList(List<BusCompanyEntity> busCompanyList) {
		this.busCompanyList = busCompanyList;
	}
	public String getCompanyNameString() {
		StringBuilder stringBuilder = new StringBuilder();
		if(null != busCompanyList) {
			for(int i=0; i<busCompanyList.size(); i++) {
				if(0 != i) {
					stringBuilder.append(",").append(busCompanyList.get(i).getCompanyName());
				} else {
					stringBuilder.append(busCompanyList.get(i).getCompanyName());
				}
			}
		} else {
			stringBuilder.append("");
		}
		return stringBuilder.toString();


	}
	public void setCompanyNameString(String companyNameString) {
		this.companyNameString = companyNameString;
	}
	public Integer getInfoStatus() {
		return infoStatus;
	}
	public void setInfoStatus(Integer infoStatus) {
		this.infoStatus = infoStatus;
	}






}
